/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Rooms.java
 *
 * Created on Nov 24, 2011, 3:14:46 PM
 */
package com.gruppenchat.views;

import java.awt.Component;
import javax.swing.JTabbedPane;

/**
 *
 * @author sergio
 */
public final class Rooms extends JTabbedPane {

    /** Creates new form Rooms */
    public Rooms() {
        initComponents();
        newTab ("Tab 1");
    }
    
    public RoomTab newTab (java.lang.String s) {
        RoomTab chatroomTab = new com.gruppenchat.views.RoomTab();
        
        add(s, chatroomTab); // NOI18N
        chatroomTab.setDividerLocation(0.2);
        return chatroomTab;
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        setMinimumSize(new java.awt.Dimension(850, 504));
        setName("Form"); // NOI18N
        setPreferredSize(new java.awt.Dimension(850, 504));
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables

}
